<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>综合页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }
        .top-ad {
            background-color: #f8f9fa;
            text-align: center;
            padding: 15px;
            border-bottom: 1px solid #ddd;
        }
        .nav-bar {
            background: linear-gradient(135deg, #333, #555);
            color: white;
            padding: 15px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .nav-bar a {
            color: white;
            margin: 0 15px;
            padding: 10px 15px;
            text-decoration: none;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        .nav-bar a:hover {
            background-color: rgba(255,255,255,0.1);
            transform: translateY(-2px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .nav-bar a:active {
            transform: translateY(0);
            box-shadow: none;
        }
        .content {
            display: flex;
            margin: 25px;
        }
        .carousel {
            flex: 3;
            background-color: #fff;
            padding: 20px;
            margin-right: 20px;
            text-align: center;
            position: relative;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .carousel img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }
        .carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0,0,0,0.5);
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            border-radius: 50%;
        }
        .carousel-control.prev {
            left: 10px;
        }
        .carousel-control.next {
            right: 10px;
        }
        .hot-news {
            flex: 2;
            background-color: #fff;
            padding: 20px;
            text-align: left;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .hot-news h3 {
            margin-bottom: 15px;
            color: #333;
        }
        .hot-news ul {
            list-style: none;
            padding: 0;
        }
        .hot-news li {
            margin-bottom: 10px;
        }
        .hot-news a {
            text-decoration: none;
            color: #007bff;
            transition: color 0.3s;
        }
        .hot-news a:hover {
            color: #0056b3;
        }
        .blank-boxes {
            display: flex;
            margin: 25px;
        }
        .blank-box {
            flex: 1;
            background-color: #fff;
            padding: 20px;
            margin: 0 10px;
            text-align: center;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .blank-box:hover {
            transform: translateY(-5px);
        }
        .blank-box img {
            max-width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        .back-to-top {
            text-align: center;
            margin: 25px;
        }
        .back-to-top button {
            padding: 10px 20px;
            background-color: #333;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.3s;
        }
        .back-to-top button:hover {
            background-color: #555;
        }
    </style>
</head>
<body>
    <div class="top-ad">
        <img src="ad-banner.jpg" alt="广告横幅" style="max-width: 100%; height: auto;">
    </div>
    <div class="nav-bar">
        <a href="#home" style="color: white; margin: 0 15px;">首页</a>
        <a href="#news" style="color: white; margin: 0 15px;">新闻</a>
        <a href="#contact" style="color: white; margin: 0 15px;">联系我们</a>
        <a href="#about" style="color: white; margin: 0 15px;">关于我们</a>
    </div>
    <div class="content">
        <div class="carousel">
            <button class="carousel-control prev" onclick="prevSlide()">&#10094;</button>
            <img id="carouselImage" src="1.png" alt="轮播图1">
            <p id="carouselText">轮播图内容描述1</p>
            <button class="carousel-control next" onclick="nextSlide()">&#10095;</button>
        </div>
        <div class="hot-news">
            <h3>最新热点新闻</h3>
            <ul>
                <li><a href="#news1">热点新闻1</a></li>
                <li><a href="#news2">热点新闻2</a></li>
                <li><a href="#news3">热点新闻3</a></li>
            </ul>
        </div>
    </div>
    <div class="blank-boxes">
        <div class="blank-box">
            <img src="recommend1.jpg" alt="推荐内容1">
            <h3>精选旅游路线</h3>
            <p>探索世界各地的美景，体验独特的文化风情。我们为您精心挑选了多条热门旅游路线，满足您的不同需求。</p>
            <a href="#tour1" class="btn">了解更多</a>
        </div>
        <div class="blank-box">
            <img src="recommend2.jpg" alt="推荐内容2">
            <h3>美食推荐</h3>
            <p>品尝各地特色美食，感受舌尖上的美味。我们为您推荐了多家口碑餐厅，让您享受美食的同时也能体验当地文化。</p>
            <a href="#food1" class="btn">了解更多</a>
        </div>
    </div>
    <div class="back-to-top">
        <button onclick="scrollToTop()">回到顶部</button>
    </div>
    <script>
        const carouselImages = [
            { src: "1.png", text: "轮播图内容描述1" },
            { src: "2.jpg", text: "轮播图内容描述2" },
            { src: "3.png", text: "轮播图内容描述3" }
        ];
        let currentIndex = 0;

        function updateCarousel() {
            document.getElementById('carouselImage').src = carouselImages[currentIndex].src;
            document.getElementById('carouselText').textContent = carouselImages[currentIndex].text;
        }

        function nextSlide() {
            currentIndex = (currentIndex + 1) % carouselImages.length;
            updateCarousel();
        }

        function prevSlide() {
            currentIndex = (currentIndex - 1 + carouselImages.length) % carouselImages.length;
            updateCarousel();
        }

        function scrollToTop() {
            window.scrollTo({ top: 0, behavior: 'smooth' });
        }
    </script>
</body>
</html>